package com.andyage.admin.action;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.andyage.admin.bean.AdShareBean;
import com.andyage.admin.service.IAdShareService;

@Controller
@RequestMapping("/admin")
public class AdShareAction {
	@Resource
	private IAdShareService iashareService;
	
	String CONTENT_TYPE = "text/html;charset=utf-8";
	@RequestMapping("/queryAdShareInfo")
	public  void queryAdShareInfo(AdShareBean shareBean,HttpServletResponse response) {
		try {
		String json = iashareService.queryAdShareInfo(shareBean);
		response.setContentType(CONTENT_TYPE);
		response.getWriter().print(json);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
